package com.qf.userweb.mapper;

import com.qf.userweb.entity.LoginUser;
import com.qf.userweb.entity.User;
import com.qf.userweb.entity.UserDTO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
    @Select("select * from user where username=#{username} and password=#{password}")
    User login(LoginUser loginUser);



    List<User> list(UserDTO userDTO);

    int delBatch(List<Integer> ids);

    int add(User user);
}
